package com.hzhr.iot.collect.service.helper;

import com.hzhr.iot.collect.Global;
import com.hzhr.iot.core.exception.ServiceException;
import com.hzhr.iot.device.sdk.model.iotDevice_registInfo.IotDevice_RegistInfoPutModel;
import com.hzhr.iot.device.sdk.service.Device_IotDevice_RegistInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class Device_IotDevice_RegistInfoServiceHelper {
    @Autowired
    Device_IotDevice_RegistInfoService device_iotDevice_registInfoService;
    @Autowired
    Global global;

    public void putByIotDeviceId(int id, IotDevice_RegistInfoPutModel model) throws ServiceException {
        Map<String, Object> query = new HashMap<>();
        device_iotDevice_registInfoService.putByIotDeviceId(global.initGlobalHeader(), id, query, model);
    }

}
